Tips = {
	error: function(msg, node){
		$('msg-div').remove();
		var msgDiv = $('<div class="form-group msg-div msg-error"><span class="glyphicon glyphicon-exclamation-sign msg-icon"></span> <span class="msg-content">' + msg + '</span></div>');
		$(node).append(msgDiv);
		msgDiv.show('fast')
	},
	success: function(msg, node){
		$('msg-div').remove();
		var msgDiv = $('<div class="form-group msg-div msg-success"><i class="glyphicon glyphicon-ok msg-icon"></i> <span class="msg-content">' + msg + '</span></div>');
		$(node).append(msgDiv);
		msgDiv.show('fast')
	},
	tips: function(content, closeCallback){
		var callback = function(){};
		if(closeCallback) {
			callback = closeCallback;
		}
		var obj = $.confirm({
		    title: false,
		    cancelButton: false,
		    confirmButton: false,
		    closeIcon: false,
		    backgroundDismiss: true,
		    content: content,
		    onClose: callback
		});
		return obj;
	}
};